<?php

namespace app\common\validate;

use think\Validate;

class Compere extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'mobile|手机号'       => 'require',
        'passWord|密码'       => 'require',
        'roomNumber|房间编号' => 'require',
        'userNumber|用户编号' => 'require',
        'type|指定方式'       => 'require',
        'roleId|角色ID'       => 'require',
        'controlType|操作类型' => 'require',
        'controlGameType|房间操作状态' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'compereLogin' => ['mobile', 'passWord'],
        'setRole'      => ['userNumber', 'roomNumber', 'type'],
        'controlRole'  => ['userNumber', 'roomNumber','roleId','controlType'],
        'controlGame'  => ['roomNumber','controlGameType'],
        'searchWinUserArr' => ['roomNumber'],
    ];
}